package com.eeepay.eeepay_v2.adapter;

import android.content.Context;

import com.eeepay.eeepay_v2.R;
import com.eeepay.v2_library.adapter.ABBaseAdapter;
import com.eeepay.v2_library.adapter.ABViewHolder;

import cn.eeepay.api.grpc.nano.MerchantSuperSearch;

/**
 * Created by zw on 2016/5/4 0004.
 * 汇总列表适配器
 */
public class MerchantCollectListAdapter extends ABBaseAdapter<MerchantSuperSearch.MerchantAggregateInfo>{

    public MerchantCollectListAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.view_left_right_text;
    }

    @Override
    public void convert(ABViewHolder holder, MerchantSuperSearch.MerchantAggregateInfo model) {

        holder.setText(R.id.tv_left, model.name);
        holder.setText(R.id.tv_right, model.merchantNum + "个商户");
    }
}
